package com.dp.vo;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "news_k16control")
public class NewsK16control implements Serializable {
	    private static final long serialVersionUID = 1L;
	    @Id
	    @Basic(optional = false)
	    @Column(name = "sn")
	    private String sn;
	    @Column(name = "sntype")
	    private String sntype;
	    public NewsK16control(){
	    	
	    }
	    public NewsK16control(String sn,String sntype){
	    	this.sn=sn;
	    	this.sntype=sntype;
	    }
	    
		public String getSn() {
			return sn;
		}
		public void setSn(String sn) {
			this.sn = sn;
		}
		public String getSntype() {
			return sntype;
		}
		public void setSntype(String sntype) {
			this.sntype = sntype;
		}
		@Override
	    public int hashCode() {
	        int hash = 0;
	        hash += (sn != null ? sn.hashCode() : 0);
	        return hash;
	    }

	    @Override
	    public boolean equals(Object object) {
	        if (!(object instanceof NewsK16control)) {
	            return false;
	        }
	        NewsK16control other = (NewsK16control) object;
	        if ((this.sn == null && other.sn != null) || (this.sn != null && !this.sn.equals(other.sn))) {
	            return false;
	        }
	        return true;
	    }

	    @Override
	    public String toString() {
	        return "com.dp.vo.NewsK16control[sn=" + sn + "]";
	    }
}
